package com.matt.domain.cookbook;

import com.matt.domain.NativeWithResultClass;
import com.matt.commons.model.Model;
import java.io.Serializable;
import java.sql.Struct;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 食物
 */
@Entity
@Table(name = "tb_recipe_food")
@EqualsAndHashCode(callSuper = true)
@Data
@NativeWithResultClass
public class RecipeFood extends RecipeBase implements Serializable {
  private static final long serialVersionUID = 1L;

  /**
   * 食物名称
   */
  @Column(name = "name")
  private String name;

  /**
   * 食物图片
   */
  @Column(name = "photo")
  private String photo;

  /**
   * 食物类别 字典
   */
  @Column(name = "type")
  private Integer type;

  /**
   * 食物类别名称
   */
  @Column(name = "type_name")
  private String typeName;

  /**
   * 学校ID
   */
  @Column(name = "area_id")
  private String areaId;

  
}